﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Xml.Serialization;

namespace VideoCache.Spider.FileFetchers
{
    [Serializable]
    public class FetcherResult
    {
        [XmlAttribute]
        public string Referer { get; set; }
        [XmlAttribute]
        public Resolution Resolution { get; set; }
        [XmlAttribute]
        public string Downloader { get; set; }
        public List<string> Files { get; set; }

        public FetcherResult()
        {
            this.Files = new List<string>();
        }
    }

    public enum Resolution : int
    {
        [Description("未知")]
        Unknow = 0,
        [Description("标清")]
        Level_1 = 1,
        [Description("高清")]
        Level_2 = 2,
        [Description("超清")]
        Level_3 = 3,
        [Description("蓝光")]
        Level_4 = 4,
        [Description("1080P")]
        Level_5 = 5,
        [Description("原画")]
        Level_6 = 6
    }

    public enum FileFormat : int
    {
        MP4 = 1,
        Flv = 2,
        F4v = 3
    }
}